<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'Test.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<script type="text/javascript" src="<%=basePath%>js/jquery.min.js"></script>
</head>

<body>
	<form action="<%=basePath%>TestServlet" method="post"
		enctype="multipart/form-data">
		<input type="text" name="name" id="name" /> <input type="file"
			name="idFile" id="idFile" />(最大为512kb) <br> <input
			type="submit" value="提交" /> <img
			src="<%=basePath%>files/${imgname}" />
		<table style="width: 100%; height: auto;">
			<c:forEach items="${page.result}" var="result" varStatus="status">
				<tr>
					<td align="center" style="padding-left:20px">${result.id}</td>
					<td align="center" style="padding-left:20px">${result.name}</td>
				</tr>
			</c:forEach>
		</table>
	</form>
</body>
</html>
